home *** CD-ROM | disk | FTP | other *** search
/ Libris Britannia 4 / science library(b).zip / science library(b) / PACKET / CBBS60SO.ZIP / MBUSER.H < prev    next >
Text File  |  1988-06-15  |  2KB  |  82 lines

  1.  
  2. /*
  3.  * MBUSER.H - 4/25/88 -  Definitions for user file.
  4.  */
  5.  
  6. #define us_version 8
  7.  
  8. extern char  *usfile, *usbfile;
  9. extern int    ufl;
  10. extern char tcall[ln_call];  /* Used all over as temp */
  11.  
  12. #define num_um 7
  13. extern char *um[num_um];
  14.  
  15. /*
  16.  *  User file header record.
  17.  */
  18.  
  19. #define ufhsunu 234
  20.  
  21. typedef struct user_hdr_s
  22. {
  23.   char version;       /* File version                    */
  24.   word count;         /* Number of users in file         */
  25.   word lmnr;          /* Last message # at last compress */
  26.   char dirty;         /* True if anything changed        */
  27.   char date[ln_date]; /* Date of last compress           */
  28.   char time[ln_time]; /* Time of last compress           */
  29.   char wpdate[ln_date];/* Date last WP Update generated  */
  30.   char unu[ufhsunu];   /* Ain't used at all, yet          */
  31. } USER_HDR;
  32.  
  33. /*
  34.  *  User file user record.
  35.  */
  36.  
  37. /*
  38.  *  User record options.
  39.  */
  40.  
  41. #define u_local    0x01
  42. #define u_bbs      0x02
  43. #define u_expert   0x04
  44. #define u_delete   0x08
  45. #define u_sysop    0x10
  46. #define u_exclude  0x20
  47.  
  48. /*
  49.  *  User record state.
  50.  */
  51.  
  52. #define u_sent     0x01
  53. #define u_name     0x02
  54. #define u_home     0x04
  55. #define u_zip      0x08
  56.  
  57. #define pathl 81
  58. #define userunu 125
  59.  
  60. typedef struct user_s
  61. {
  62.   char call[ln_call];     /* Users call                          */
  63.   char home_bbs[ln_call]; /* Users home bbs                      */
  64.   char date[ln_date];     /* Date of last logout                 */
  65.   char time[ln_time];     /* Time of last logout                 */
  66.   char handle[ln_handle]; /* Users name                          */
  67.   char port;              /* Port user last connected, L if link */
  68.   char path[pathl];       /* NULL terminated string              */
  69.   byte ssid;              /* ssid, binary                        */
  70.   byte state;             /* Got name? Got home? Sent to WP?     */
  71.   word msg_number;        /* Last message # at last login        */
  72.   byte options;           /* Permissions and stuff like that     */
  73.   word log_count;         /* Number of times user has connected  */
  74.   word rn;                /* Record number, zero if not valid    */
  75.   char zip[ln_zip];
  76.   char unu[userunu];
  77. } USER;
  78.  
  79. extern USER_HDR *ufhs;
  80. extern USER     *tuser;
  81.  
  82.